package com.pet.serve.response;

import com.pet.serve.entity.Collect;
import com.pet.serve.entity.Customers;
import com.pet.serve.entity.Pets;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

@Setter
@Getter
public class ApiResponse {

    private boolean success;
    private String message;
    private Object data;
    private String token;
    private long total;

    // 构造函数
    public ApiResponse(boolean success, String message, Object data, String token) {
        this.success = success;
        this.message = message;
        this.data = data; // 这里是 user
        this.token = token;
    }


    public ApiResponse(boolean success, String message, Object data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }

    public ApiResponse(boolean success, String message, Object data, long total) {
        this.success = success;
        this.message = message;
        this.data = data;
        this.total = total;
    }

    public ApiResponse(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public ApiResponse(boolean success, Object data) {
        this.success = success;
        this.data = data;
    }
}
